﻿namespace BugAdmin.Api.Common
{
    /// <summary>
    /// API接口通用返回格式
    /// </summary>
    public class ApiResult
    {
        /// <summary>
        /// 是否正常返回
        /// </summary>
        public bool Success { get; set; }
        /// <summary>
        /// 处理消息
        /// </summary>
        public string? Message { get; set; }
    }
    /// <summary>
    /// 其他特殊格式
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ApiDataResult<T> : ApiResult
    {
        /// <summary>
        /// 结果集
        /// </summary>
        public T? Data { get; set; }
        /// <summary>
        /// 冗余结果
        /// </summary>
        public object? OValue { get; set; }
    }
}
